Skip to content

Add in dynamic version for telemetry using GITHUB_ACTION_REF - #614

Merged
MaddyMicrosoft merged 4 commits into
masterfrom
telemetry/action-ref
Aug 18, 2026
Merged

Add in dynamic version for telemetry using GITHUB_ACTION_REF#614
MaddyMicrosoft merged 4 commits into
masterfrom
telemetry/action-ref

Conversation

@MaddyMicrosoft

@MaddyMicrosoft MaddyMicrosoft commented Aug 17, 2026

Copy link
Copy Markdown
Member

Summary

Reports the action ref the consumer actually pinned in telemetry, instead of a hardcoded version string. Prevents manual changes and drift.

Change

Telemetry: report the actual action ref (src/common/Utils.ts)
The user-agent string hardcoded @v3, which silently goes stale on a major bump. It now reads GITHUB_ACTION_REF (the ref the consumer pinned, e.g. v3, v3.1.0, a SHA, or main), falling back to unknown. This never goes stale and distinguishes how consumers actually pin.

Live-tests: isolate the resource group per run
The workflow used a fixed RG name plus a repo-wide concurrency group. Because the test jobs sit behind the Automation test approval gate, an unapproved run held the shared lock in the waiting state and blocked live-tests on every other PR. Each run now provisions its own RG (GitHubAction_CI_Group_${{ github.run_id }}), and the concurrency group is scoped to the branch, so runs never block across PRs.

Live-tests: fix RG name expansion on Windows
The RG name was referenced bash-style ($RG_POSITIVE) in az group steps. Those use the runner default shell, which is PowerShell on windows-latest, so the value expanded to empty and az failed. It now uses the ${{ env.RG_POSITIVE }} expression, which is shell-agnostic.

Why

  • The version string can no longer go stale on a major bump; it always reflects the real ref.
  • It is more accurate telemetry: it distinguishes consumers pinned to a major (@v3) from an exact version, a SHA, or main.

Notes

  • Behavior change for telemetry consumers: the value after @ is now the pinned ref rather than always @v3, so downstream parsing that assumed @vN should bucket the new values. Worth a heads-up to whoever owns the user-agent dashboards.

@MaddyMicrosoft
MaddyMicrosoft marked this pull request as ready for review August 17, 2026 06:23
…anch

The live-tests workflow used a fixed resource group name
(GitHubAction_CI_Group) plus a repo-wide concurrency group. Because the
test jobs run behind the Automation test approval gate, an unapproved run
sits in the 'waiting' state holding the shared concurrency lock, which
blocked live-tests on every other PR indefinitely.

Give each run its own resource group by suffixing the name with
github.run_id, and reference it via the RG_POSITIVE env var everywhere
(previously nine jobs used the literal name). With per-run isolation the
repo-wide lock is no longer needed to prevent collisions, so the
concurrency group is now scoped to the branch (github.ref) and only
prevents pile-ups on rapid pushes to the same ref - never across PRs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The per-run resource group name was referenced as the bash-style
"$RG_POSITIVE" in az group show/create/delete run steps. Those steps use
the runner default shell, which is PowerShell on windows-latest, so the
name expanded to an empty string there and az failed with "argument
--name/-n/--resource-group/-g: expected one argument".

Reference the value through the GitHub Actions env expression instead, so
it is substituted before the shell runs, making it shell-agnostic across
ubuntu, windows, and macos. The azure/powershell inline scripts keep
using the PowerShell env form, which is correct there.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 17, 2026 07:04 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 18, 2026 00:09 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 18, 2026 00:09 — with GitHub Actions Active
@MaddyMicrosoft
MaddyMicrosoft deployed to Automation test August 18, 2026 00:09 — with GitHub Actions Active
@isra-fel

Copy link
Copy Markdown
Member

Great idea! Would be nice to have versions even if customer pins a sha or branch, but it's probably not worth it.

@MaddyMicrosoft
MaddyMicrosoft merged commit 3b64cbd into master Aug 18, 2026
33 of 34 checks passed
@MaddyMicrosoft
MaddyMicrosoft deleted the telemetry/action-ref branch August 18, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants